package com.firesrc.bean;

import jodd.db.oom.meta.DbColumn;
import jodd.db.oom.meta.DbId;
import jodd.db.oom.meta.DbTable;
import lombok.Data;

@Data
@DbTable(value = "MAILHOST")
public class MailHost {
	@DbId
	private String id;
	@DbColumn(value = "HOSTNAME")
	private String hostName;
	@DbColumn(value = "USERNAME")
	private String userName;
	@DbColumn
	private String password;
	@DbColumn
	private String kind;
	@DbColumn(value = "SENDONCEMAXCOUNT")
	private int sendOnceMaxCount;
	@DbColumn(value = "SENDDAYMAXCOUNT")
	private int sendDayMaxCount;
	@DbColumn(value = "STATE")
	private String state;//1表示有效的,0表示无效禁止的,读取的时候不会读取
	@DbColumn(value = "MAIL")
	private String mail;
	@DbColumn(value = "ISSSL")
	private boolean isSsl;
	@DbColumn(value = "SEQ")
	private int seq;
	private int dayAlreadySendCount;

}
